package com.opc.controller;

import com.opc.entity.Device;
import com.opc.entity.DeviceRecord;
import com.opc.service.DeviceRecordService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 作者
 * @since 2023-03-14
 */
@RestController
@RequestMapping("/deviceRecord")
public class DeviceRecordController {
    @Resource
    private DeviceRecordService recordService;

    @GetMapping("/record_list")
    public List<DeviceRecord> obtainAllRecordList() {
        return recordService.list();
    }
}
